﻿using UnityEngine;
using SocketWeaver.FPhysics2D;
using SocketWeaver.FixedMath;

public class AutoRotate : MonoBehaviour
{
    public FFloat speed = FFloat.s180;
    FRigidbody2D _rigidbody;
    public FCollisionEvent fe = new FCollisionEvent();
    public void FixedUpdate()
    {
        _rigidbody.rotation += speed * (FFloat)Time.fixedDeltaTime;
    }

    // Start is called before the first frame update
    void Start()
    {
        _rigidbody = GetComponent<FRigidbody2D>();
    }
}